﻿//双击打开目录
function opendir(dir) {
    //$('#path').val();
    $('#selpath').val($('#selpath').val() + "/" + dir);
    window.parent.$('#hidselpath').val($('#selpath').val());
    window.parent.GetCurrentRoot();
    window.location.href = 'FileSelectWork.aspx?path=' + $('#path').val() + '&selpath=' + $('#selpath').val();
    TaggleCSS(null, "", "");
}
function filedblclick(name) {
    window.parent.EditFile(name);
}
function TaggleCSS(obj, type, name) {
    $("#filelist div").removeClass("Focus");
    if (obj != null && type != "" && name != "") {
        window.parent.$("#hideSelecttype").val(type);
        window.parent.$("#hideSelectName").val(name);
    }
    if (type == "file") {
        window.parent.$("#CurrentSelect").text(window.parent.$("#hideSelectName").val());
        window.parent.$("#btnDelFile").show();
    }
    else {
        window.parent.$("#CurrentSelect").text("当前尚未选中文件");
        window.parent.$("#btnDelFile").hide();
    }
    if (obj != null) {
        $(obj).addClass("Focus");
    }
}
